/*
 * tool.h
 *
 *  Created on: 2015-5-3
 *      Author: ZHAO Jing
 */

#ifndef TOOL_H_
#define TOOL_H_
#define ABS(x) ((x)<0?-(x):(x))

int gcd(int a,int b){
	return b?gcd(b,a%b):a;
}

#endif /* TOOL_H_ */
